package net.oschina.app.fragment;


import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import net.oschina.app.R;
import net.oschina.app.base.BaseFragment;
import net.oschina.app.util.UIHelper;

import butterknife.BindView;
import butterknife.ButterKnife;



/**
 * 发现页面
 * 
 * @author FireAnt（http://my.oschina.net/LittleDY）
 * @version 创建时间：2014年11月4日 下午3:34:07
 * 
 */

public class ExploreFragment extends BaseFragment {

    @BindView(R.id.rl_active)
    View mRlActive;

/*    @InjectView(R.id.rl_find_osc)
    View mFindOSCer;

    @InjectView(R.id.rl_city)
    View mCity;

    @InjectView(R.id.rl_activities)
    View mActivities;

    @InjectView(R.id.rl_scan)
    View mScan;

    @InjectView(R.id.rl_shake)
    View mShake;
*/
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);
        View view = inflater.inflate(R.layout.fragment_explore, null);
        ButterKnife.bind(this, view);
        initView(view);
        return view;
    }

    @Override
    public void onClick(View v) {
        int id = v.getId();
        switch (id) {
        case R.id.rl_active://好友圈
            // 显示我的好友圈
            UIHelper.showMyActive(getActivity());
            // newsFragment.getNewsList()
            break;
//        case R.id.rl_find_osc:
//            UIHelper.showSimpleBack(getActivity(), SimpleBackPage.FIND_USER);
//            break;

        default:
            break;
        }
    }

    @Override
    public void initView(View view) {
        mRlActive.setOnClickListener(this);
    }

    @Override
    public void initData() {

    }
}
